ARCH=-m64

all: lib sample

lib:
	cd src; make "ARCH=$(ARCH)"

sample: lib
	mkdir -p samples/bin
	cd samples; make "ARCH=$(ARCH)"
	
clean:	
	cd src; make clean
	cd samples; make clean
	rm -f jjann*
	rm -f libjjann*
	

deploy: lib
	tar -czf jjann.tar.gz include libjjann*
	
deploy_with_samples: sample lib
	tar -czf jjann_with_samples.tar.gz include libjjann* samples/*.c samples/makefile